﻿@model IEnumerable<TimeReporting.Models.Project>

@{
    ViewBag.Title = "Index";
}

<h2>Index</h2>

<p>
    @Html.ActionLink("New Project", "Create") | 
    @Html.ActionLink("Add Activity", "../Activity/Create") 
</p>
<table>
    <tr>
        <th>
            title
        </th>
        <th>
            client
        </th>
        <th>
            managerName
        </th>
        <th> </th>
    </tr>

@foreach (var item in Model) {
    <tr>
        <td>
            @Html.DisplayFor(modelItem => item.title)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.client)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.managerName)
        </td>
        <td>
            @Html.ActionLink("Edit", "Edit", new { id=item.projectID }) |
            @Html.ActionLink("Details", "Details", new { id=item.projectID }) |
            @Html.ActionLink("Delete", "Delete", new { id=item.projectID })
        </td>
    </tr>
}

</table>
